<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@page import="java.sql.*"%>
<%@page import="java.util.*"%>
	
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>校园管理</title>
		<%@ include file="../com.jsp"%>

	</head>
	<body>
		<div class="alert alert-info">
			校园维修信息列表
		</div>
		<c:if test="${list != 'null'}">
			<table class="table table-striped table-bordered table-condensed">
				<thead>
					<tr class="tr_detail">
						<td>
							编号
						</td>
						<td>
							订单名称
						</td>
						<td>
							发布人
						</td>
						<td>
							发布时间
						</td>
						<td>
							电话
						</td>
						<td>
							地址
						</td>
						<td>
							需求日期
						</td>
						<td>
							评价
						</td>
					<td>
							图片
						</td>
					<td>
							维修类别
						</td>
					<td>
						状态
						</td>
						<td>
							操作
						</td>
						
					</tr>
				</thead>
				<tbody>
					<c:forEach var="tmp" items="${list}">
						<tr>
							<td>
								${tmp.id }
							</td>
							<td>
								${tmp.title }
							</td>
							<td>
									${tmp.author }
							</td>
							<td>
								${tmp.pubdate }
							</td>
							<td>
								${tmp.phone}
							</td>
							<td>
								${tmp.address }
							</td>
							<td>
								${tmp.needtime }
							</td>
							<td>
								${tmp.pingjia }
							</td>
							<td>
								<img alt="图片下载" src="${pageContext.request.contextPath}/${tmp.image_url }" width="100px" height="100px"/>
								
							</td>
							
								<td>
								${tmp.type }
							</td>
								<td>
								
								<c:if test="${tmp.status == 3 }">
								  订单完成
								</c:if>
								<c:if test="${tmp.status == 2 }">
								   正在维修
								</c:if>
								<c:if test="${tmp.status == 1 }">
									已派单
								</c:if>
								<c:if test="${tmp.status == 0 }">
									发起请求
								</c:if>
							</td>
						

						</tr>
					</c:forEach>
				</tbody>
			</table>
			</c:if>
	</body>
</html>
